<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxDao/QxSession.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_session_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxSession.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_session_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_DAO_SESSION_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_DAO_SESSION_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;boost/noncopyable.hpp&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;boost/shared_ptr.hpp&gt;</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;QtSql/qsqldatabase.h&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;QtSql/qsqlquery.h&gt;</span>
<a name="l00051"></a>00051 <span class="preprocessor">#include &lt;QtSql/qsqlerror.h&gt;</span>
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;QtSql/qsqldriver.h&gt;</span>
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="preprocessor">#include &lt;QtCore/qlist.h&gt;</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="preprocessor">#include &lt;<a class="code" href="_qx_bool_8h.html" title="qx_bool : QxOrm library boolean type with code and description message when an error occured...">QxCommon/QxBool.h</a>&gt;</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#include &lt;<a class="code" href="_qx_dao_8h.html" title="Provide template functions to map C++ class registered into QxOrm context with table database (ORM - ...">QxDao/QxDao.h</a>&gt;</span>
<a name="l00059"></a>00059 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_query_8h.html" title="Define a user SQL query added to default SQL query builded by QxOrm library, and used by qx::dao::xxx...">QxDao/QxSqlQuery.h</a>&gt;</span>
<a name="l00060"></a>00060 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_error_8h.html" title="Define a SQL error exception and retrieve QSqlError type of Qt library.">QxDao/QxSqlError.h</a>&gt;</span>
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="preprocessor">#include &lt;<a class="code" href="_qx_class_8h.html" title="Concrete class registered into QxOrm context.">QxRegister/QxClass.h</a>&gt;</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="keyword">namespace </span>qx {
<a name="l00065"></a>00065 
<a name="l00121"></a><a class="code" href="classqx_1_1_qx_session.html">00121</a> <span class="keyword">class </span><a class="code" href="_qx_macro_8h.html#aa569abe24f343fdc4ad5e12e156ba8a2">QX_DLL_EXPORT</a> <a class="code" href="classqx_1_1_qx_session.html" title="qx::QxSession : define a session to manage automatically database transactions (using C++ RAII)...">QxSession</a> : <span class="keyword">private</span> boost::noncopyable
<a name="l00122"></a>00122 {
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="keyword">private</span>:
<a name="l00125"></a>00125 
<a name="l00126"></a><a class="code" href="classqx_1_1_qx_session.html#a52df7bbc721642e7c7ee65dba441084d">00126</a>    QSqlDatabase <a class="code" href="classqx_1_1_qx_session.html#a52df7bbc721642e7c7ee65dba441084d" title="Database connexion of current session.">m_database</a>;            
<a name="l00127"></a><a class="code" href="classqx_1_1_qx_session.html#a2a2075b52791c6d40ed6b716320ea9f3">00127</a>    QList&lt;QSqlError&gt; <a class="code" href="classqx_1_1_qx_session.html#a2a2075b52791c6d40ed6b716320ea9f3" title="List of SQL errors.">m_lstSqlError</a>;     
<a name="l00128"></a><a class="code" href="classqx_1_1_qx_session.html#ac21f79c644ca0c901584a165c6207ae6">00128</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_session.html#ac21f79c644ca0c901584a165c6207ae6" title="Flag to know if a transaction is opened or not.">m_bTransaction</a>;                
<a name="l00129"></a><a class="code" href="classqx_1_1_qx_session.html#a2edb00fa08531d45bdb349c7dd299129">00129</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_session.html#a2edb00fa08531d45bdb349c7dd299129" title="When a SQL error is appended, an exception of type qx::dao::sql_error is thrown.">m_bThrowable</a>;                  
<a name="l00130"></a><a class="code" href="classqx_1_1_qx_session.html#a683631cd13ed1e7c792abe63a0957e3a">00130</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_session.html#a683631cd13ed1e7c792abe63a0957e3a" title="An exception of type qx::dao::sql_error is throwing.">m_bThrowInEvent</a>;               
<a name="l00131"></a><a class="code" href="classqx_1_1_qx_session.html#a13166032e0c37cec3a0cb8f92d43c2b7">00131</a>    <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_session.html#a13166032e0c37cec3a0cb8f92d43c2b7" title="Open and close automatically connection to database.">m_bAutoOpenClose</a>;              
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 <span class="keyword">public</span>:
<a name="l00134"></a>00134 
<a name="l00135"></a>00135    <a class="code" href="classqx_1_1_qx_session.html" title="qx::QxSession : define a session to manage automatically database transactions (using C++ RAII)...">QxSession</a>();
<a name="l00136"></a>00136    <a class="code" href="classqx_1_1_qx_session.html" title="qx::QxSession : define a session to manage automatically database transactions (using C++ RAII)...">QxSession</a>(<span class="keyword">const</span> QSqlDatabase &amp; database);
<a name="l00137"></a>00137    <a class="code" href="classqx_1_1_qx_session.html" title="qx::QxSession : define a session to manage automatically database transactions (using C++ RAII)...">QxSession</a>(<span class="keyword">const</span> QSqlDatabase &amp; database, <span class="keywordtype">bool</span> bOpenTransaction);
<a name="l00138"></a>00138    <a class="code" href="classqx_1_1_qx_session.html" title="qx::QxSession : define a session to manage automatically database transactions (using C++ RAII)...">QxSession</a>(<span class="keyword">const</span> QSqlDatabase &amp; database, <span class="keywordtype">bool</span> bOpenTransaction, <span class="keywordtype">bool</span> bThrowable);
<a name="l00139"></a><a class="code" href="classqx_1_1_qx_session.html#ad4a6c22e503e3bfef3ac9e9b49e538ac">00139</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_session.html#ad4a6c22e503e3bfef3ac9e9b49e538ac">~QxSession</a>() { close(); }
<a name="l00140"></a>00140 
<a name="l00141"></a><a class="code" href="classqx_1_1_qx_session.html#ab44a19aea2d61d81104d532554e19353">00141</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_session.html#ab44a19aea2d61d81104d532554e19353">isThrowable</a>()<span class="keyword"> const              </span>{ <span class="keywordflow">return</span> m_bThrowable; }
<a name="l00142"></a><a class="code" href="classqx_1_1_qx_session.html#a318289d8cdd7530e7226b2d6a844b8a5">00142</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_session.html#a318289d8cdd7530e7226b2d6a844b8a5">isOpened</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> m_bTransaction; }
<a name="l00143"></a><a class="code" href="classqx_1_1_qx_session.html#a84739b37cb853161d00089c2d8fbe307">00143</a>    <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_session.html#a84739b37cb853161d00089c2d8fbe307">isValid</a>()<span class="keyword"> const                  </span>{ <span class="keywordflow">return</span> (m_lstSqlError.count() &lt;= 0); }
<a name="l00144"></a><a class="code" href="classqx_1_1_qx_session.html#a7ac72311c8828728c75e5b1699459e5e">00144</a>    <span class="keyword">inline</span> QSqlError <a class="code" href="classqx_1_1_qx_session.html#a7ac72311c8828728c75e5b1699459e5e">firstError</a>()<span class="keyword"> const          </span>{ <span class="keywordflow">return</span> ((m_lstSqlError.count() &gt; 0) ? m_lstSqlError.first() : QSqlError()); }
<a name="l00145"></a><a class="code" href="classqx_1_1_qx_session.html#a8b352ac34799cd70810d7454ef0fe52a">00145</a>    <span class="keyword">inline</span> QSqlError <a class="code" href="classqx_1_1_qx_session.html#a8b352ac34799cd70810d7454ef0fe52a">lastError</a>()<span class="keyword"> const           </span>{ <span class="keywordflow">return</span> ((m_lstSqlError.count() &gt; 0) ? m_lstSqlError.last() : QSqlError()); }
<a name="l00146"></a><a class="code" href="classqx_1_1_qx_session.html#ac4f22cfb4f3e2db77dcaf571423fde2f">00146</a>    <span class="keyword">inline</span> QList&lt;QSqlError&gt; <a class="code" href="classqx_1_1_qx_session.html#ac4f22cfb4f3e2db77dcaf571423fde2f">allErrors</a>()<span class="keyword"> const    </span>{ <span class="keywordflow">return</span> m_lstSqlError; }
<a name="l00147"></a><a class="code" href="classqx_1_1_qx_session.html#a1223fb0090a506b1e97cbba4cb5d00bb">00147</a>    <span class="keyword">inline</span> <span class="keyword">const</span> QSqlDatabase * <a class="code" href="classqx_1_1_qx_session.html#a1223fb0090a506b1e97cbba4cb5d00bb">database</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (&amp; m_database); }
<a name="l00148"></a><a class="code" href="classqx_1_1_qx_session.html#aa1d23e00d7f746c4b8d9e463aedcd4be">00148</a>    <span class="keyword">inline</span> QSqlDatabase * <a class="code" href="classqx_1_1_qx_session.html#aa1d23e00d7f746c4b8d9e463aedcd4be">database</a>()             { <span class="keywordflow">return</span> (&amp; m_database); }
<a name="l00149"></a>00149 
<a name="l00150"></a>00150    <span class="keywordtype">bool</span> open();
<a name="l00151"></a>00151    <span class="keywordtype">bool</span> close();
<a name="l00152"></a>00152    <span class="keywordtype">bool</span> commit();
<a name="l00153"></a>00153    <span class="keywordtype">bool</span> rollback();
<a name="l00154"></a>00154 
<a name="l00155"></a>00155    <a class="code" href="classqx_1_1_qx_session.html" title="qx::QxSession : define a session to manage automatically database transactions (using C++ RAII)...">QxSession</a> &amp; operator+= (<span class="keyword">const</span> QSqlError &amp; err);
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 <span class="keyword">private</span>:
<a name="l00158"></a>00158 
<a name="l00159"></a>00159    <span class="keywordtype">void</span> appendSqlError(<span class="keyword">const</span> QSqlError &amp; err);
<a name="l00160"></a>00160    <span class="keywordtype">void</span> <a class="code" href="group___qx_cache.html#ga9334ed3464961f8d21fe022ef3a91203" title="Delete all the objects in the cache.">clear</a>();
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="keyword">public</span>:
<a name="l00163"></a>00163 
<a name="l00164"></a>00164    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00165"></a><a class="code" href="classqx_1_1_qx_session.html#ab3574e71efb4a67aa844b24cb543334b">00165</a>    <span class="keywordtype">long</span> <a class="code" href="group___qx_cache.html#gace04518e9bf2dd2fca8449037ceffa19" title="Return the number of objects in the cache.">count</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query = <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a>())
<a name="l00166"></a>00166    { <span class="keywordflow">return</span> qx::dao::count&lt;T&gt;(query, this-&gt;database()); }
<a name="l00167"></a>00167 
<a name="l00168"></a>00168    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00169"></a><a class="code" href="classqx_1_1_qx_session.html#a47ba970a328f4bc8dd3759b9b9f98d74">00169</a>    QSqlError <a class="code" href="group___qx_cache.html#gace04518e9bf2dd2fca8449037ceffa19" title="Return the number of objects in the cache.">count</a>(<span class="keywordtype">long</span> &amp; lCount, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query = <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a>())
<a name="l00170"></a>00170    { <span class="keywordflow">return</span> qx::dao::count&lt;T&gt;(lCount, query, this-&gt;database()); }
<a name="l00171"></a>00171 
<a name="l00172"></a>00172    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00173"></a><a class="code" href="classqx_1_1_qx_session.html#a9f3f83992d04b9181864f118e72d556f">00173</a>    T * fetchById(<span class="keyword">const</span> QVariant &amp; <span class="keywordtype">id</span>, <span class="keyword">const</span> QStringList &amp; columns = QStringList(), <span class="keyword">const</span> QStringList &amp; relation = QStringList())
<a name="l00174"></a>00174    {
<a name="l00175"></a>00175       <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a> * pDataMemberX = <a class="code" href="classqx_1_1_qx_class.html" title="qx::QxClass&lt;T&gt; : concrete class of type T registered into QxOrm context (this class is a singleton an...">QxClass&lt;T&gt;::getSingleton</a>()-&gt;<a class="code" href="classqx_1_1_ix_class.html#a668a6091e56a8133606e64cba430baa4">getDataMemberX</a>();
<a name="l00176"></a>00176       <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pDataMemberId = (pDataMemberX ? pDataMemberX-&gt;<a class="code" href="classqx_1_1_ix_data_member_x.html#ada28538e61c5fd9bf352abdb325be6b0">getId_WithDaoStrategy</a>() : NULL);
<a name="l00177"></a>00177       <span class="keywordflow">if</span> (! pDataMemberId) { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <span class="keywordflow">return</span> NULL; }
<a name="l00178"></a>00178       T * t = <span class="keyword">new</span> T(); QSqlError err;
<a name="l00179"></a>00179       pDataMemberId-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>(t, <span class="keywordtype">id</span>, -1, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a5fe28c5356333a6d2633c93cbd6e48e5">qx::cvt::context::e_database</a>);
<a name="l00180"></a>00180       <span class="keywordflow">if</span> (relation.count() == 0) { err = <a class="code" href="group___qx_dao.html#ga2abaf5f2e6de160b099cf2ab74967244" title="Fetch an object t (retrieve all its properties) of type T (registered into QxOrm context) mapped to a...">qx::dao::fetch_by_id</a>((* t), this-&gt;database(), columns); }
<a name="l00181"></a>00181       <span class="keywordflow">else</span> { err = <a class="code" href="group___qx_dao.html#ga37648a23475371e1b83ea2082265790d" title="Fetch an object t (retrieve all its properties) of type T (registered into QxOrm context) mapped to a...">qx::dao::fetch_by_id_with_relation</a>(relation, (* t), this-&gt;database()); }
<a name="l00182"></a>00182       <span class="keywordflow">if</span> (err.isValid()) { <span class="keyword">delete</span> t; t = NULL; (* this) += err; }
<a name="l00183"></a>00183       <span class="keywordflow">return</span> t;
<a name="l00184"></a>00184    }
<a name="l00185"></a>00185 
<a name="l00186"></a>00186    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00187"></a><a class="code" href="classqx_1_1_qx_session.html#a792603f202cb1a1a78884f376d95f1fa">00187</a>    QSqlError fetchById(T &amp; t, <span class="keyword">const</span> QStringList &amp; columns = QStringList(), <span class="keyword">const</span> QStringList &amp; relation = QStringList())
<a name="l00188"></a>00188    {
<a name="l00189"></a>00189       QSqlError err;
<a name="l00190"></a>00190       <span class="keywordflow">if</span> (relation.count() == 0) { err = <a class="code" href="group___qx_dao.html#ga2abaf5f2e6de160b099cf2ab74967244" title="Fetch an object t (retrieve all its properties) of type T (registered into QxOrm context) mapped to a...">qx::dao::fetch_by_id</a>(t, this-&gt;database(), columns); }
<a name="l00191"></a>00191       <span class="keywordflow">else</span> { err = <a class="code" href="group___qx_dao.html#ga37648a23475371e1b83ea2082265790d" title="Fetch an object t (retrieve all its properties) of type T (registered into QxOrm context) mapped to a...">qx::dao::fetch_by_id_with_relation</a>(relation, t, this-&gt;database()); }
<a name="l00192"></a>00192       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00193"></a>00193       <span class="keywordflow">return</span> err;
<a name="l00194"></a>00194    }
<a name="l00195"></a>00195 
<a name="l00196"></a>00196    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00197"></a><a class="code" href="classqx_1_1_qx_session.html#a70fee91e15d96b8b2caafd70c42abb61">00197</a>    QSqlError fetchAll(T &amp; t, <span class="keyword">const</span> QStringList &amp; columns = QStringList(), <span class="keyword">const</span> QStringList &amp; relation = QStringList())
<a name="l00198"></a>00198    {
<a name="l00199"></a>00199       QSqlError err;
<a name="l00200"></a>00200       <span class="keywordflow">if</span> (relation.count() == 0) { err = <a class="code" href="group___qx_dao.html#gab7a00918917a06ad703a8d6887b94edb" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">qx::dao::fetch_all</a>(t, this-&gt;database(), columns); }
<a name="l00201"></a>00201       <span class="keywordflow">else</span> { err = <a class="code" href="group___qx_dao.html#gad4e90031bacdd06cf278ae3ccefa9811" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">qx::dao::fetch_all_with_relation</a>(relation, t, this-&gt;database()); }
<a name="l00202"></a>00202       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00203"></a>00203       <span class="keywordflow">return</span> err;
<a name="l00204"></a>00204    }
<a name="l00205"></a>00205 
<a name="l00206"></a>00206    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00207"></a><a class="code" href="classqx_1_1_qx_session.html#a74733d378523198c2e4502c218bab2bf">00207</a>    QSqlError fetchByQuery(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, <span class="keyword">const</span> QStringList &amp; columns = QStringList(), <span class="keyword">const</span> QStringList &amp; relation = QStringList())
<a name="l00208"></a>00208    {
<a name="l00209"></a>00209       QSqlError err;
<a name="l00210"></a>00210       <span class="keywordflow">if</span> (relation.count() == 0) { err = <a class="code" href="group___qx_dao.html#ga98785915863d9487b0f3734b667a3c72" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">qx::dao::fetch_by_query</a>(query, t, this-&gt;database(), columns); }
<a name="l00211"></a>00211       <span class="keywordflow">else</span> { err = <a class="code" href="group___qx_dao.html#ga2d8f0176ef1c7b675297637090c95129" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">qx::dao::fetch_by_query_with_relation</a>(relation, query, t, this-&gt;database()); }
<a name="l00212"></a>00212       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00213"></a>00213       <span class="keywordflow">return</span> err;
<a name="l00214"></a>00214    }
<a name="l00215"></a>00215 
<a name="l00216"></a>00216    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00217"></a><a class="code" href="classqx_1_1_qx_session.html#a23610cca5183f5b051576d0f60acbaf6">00217</a>    QSqlError <a class="code" href="group___qx_dao.html#gab4400decee849f008633c52a47508995" title="Insert an element or a list of elements into database.">insert</a>(T &amp; t, <span class="keyword">const</span> QStringList &amp; relation = QStringList())
<a name="l00218"></a>00218    {
<a name="l00219"></a>00219       QSqlError err;
<a name="l00220"></a>00220       <span class="keywordflow">if</span> (relation.count() == 0) { err = <a class="code" href="group___qx_dao.html#gab4400decee849f008633c52a47508995" title="Insert an element or a list of elements into database.">qx::dao::insert</a>(t, this-&gt;database()); }
<a name="l00221"></a>00221       <span class="keywordflow">else</span> { err = <a class="code" href="group___qx_dao.html#ga82e03bc10e1fbdc3f58f1efac252f4bc" title="Insert an element and its relationships (or a list of elements + relationships) into database...">qx::dao::insert_with_relation</a>(relation, t, this-&gt;database()); }
<a name="l00222"></a>00222       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00223"></a>00223       <span class="keywordflow">return</span> err;
<a name="l00224"></a>00224    }
<a name="l00225"></a>00225 
<a name="l00226"></a>00226    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00227"></a><a class="code" href="classqx_1_1_qx_session.html#ae4f3f7212d7a212b86d126809675d906">00227</a>    QSqlError <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">update</a>(T &amp; t, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query = <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a>(), <span class="keyword">const</span> QStringList &amp; columns = QStringList(), <span class="keyword">const</span> QStringList &amp; relation = QStringList())
<a name="l00228"></a>00228    {
<a name="l00229"></a>00229       QSqlError err;
<a name="l00230"></a>00230       <span class="keywordflow">if</span> (relation.count() == 0) { err = <a class="code" href="group___qx_dao.html#ga1bd1d32eccfb73ccd6a0e82130061fb4" title="Update an element or a list of elements into database (adding a user SQL query to the default SQL que...">qx::dao::update_by_query</a>(query, t, this-&gt;database(), columns); }
<a name="l00231"></a>00231       <span class="keywordflow">else</span> { err = <a class="code" href="group___qx_dao.html#ga9fb34aec7e865b97365c91ba20e422d2" title="Update an element and its relationships (or a list of elements + relationships) into database (adding...">qx::dao::update_by_query_with_relation</a>(relation, query, t, this-&gt;database()); }
<a name="l00232"></a>00232       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00233"></a>00233       <span class="keywordflow">return</span> err;
<a name="l00234"></a>00234    }
<a name="l00235"></a>00235 
<a name="l00236"></a>00236    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00237"></a><a class="code" href="classqx_1_1_qx_session.html#a2151e5aa2e7145e08707bb4e4b63080b">00237</a>    QSqlError <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">save</a>(T &amp; t, <span class="keyword">const</span> QStringList &amp; relation = QStringList())
<a name="l00238"></a>00238    {
<a name="l00239"></a>00239       QSqlError err;
<a name="l00240"></a>00240       <span class="keywordflow">if</span> (relation.count() == 0) { err = <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">qx::dao::save</a>(t, this-&gt;database()); }
<a name="l00241"></a>00241       <span class="keywordflow">else</span> { err = <a class="code" href="group___qx_dao.html#ga653fbb3a886e48bca4236ea3fe6ac865" title="Insert (if no exist) or update (if already exist) an element and its relationships (or a list of elem...">qx::dao::save_with_relation</a>(relation, t, this-&gt;database()); }
<a name="l00242"></a>00242       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00243"></a>00243       <span class="keywordflow">return</span> err;
<a name="l00244"></a>00244    }
<a name="l00245"></a>00245 
<a name="l00246"></a>00246    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00247"></a><a class="code" href="classqx_1_1_qx_session.html#a7785f6d20ddd8efaf76053389fbfebd4">00247</a>    QSqlError deleteById(<span class="keyword">const</span> QVariant &amp; <span class="keywordtype">id</span>)
<a name="l00248"></a>00248    {
<a name="l00249"></a>00249       <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a> * pDataMemberX = <a class="code" href="classqx_1_1_qx_class.html" title="qx::QxClass&lt;T&gt; : concrete class of type T registered into QxOrm context (this class is a singleton an...">QxClass&lt;T&gt;::getSingleton</a>()-&gt;<a class="code" href="classqx_1_1_ix_class.html#a668a6091e56a8133606e64cba430baa4">getDataMemberX</a>();
<a name="l00250"></a>00250       <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pDataMemberId = (pDataMemberX ? pDataMemberX-&gt;<a class="code" href="classqx_1_1_ix_data_member_x.html#ada28538e61c5fd9bf352abdb325be6b0">getId_WithDaoStrategy</a>() : NULL);
<a name="l00251"></a>00251       <span class="keywordflow">if</span> (! pDataMemberId) { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <span class="keywordflow">return</span> QSqlError(); }
<a name="l00252"></a>00252       qx_shared_ptr&lt;T&gt; t; t.reset(<span class="keyword">new</span> T());
<a name="l00253"></a>00253       pDataMemberId-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>(t.get(), id, -1, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a5fe28c5356333a6d2633c93cbd6e48e5">qx::cvt::context::e_database</a>);
<a name="l00254"></a>00254       QSqlError err = <a class="code" href="group___qx_dao.html#ga298e15a5e745ae43d99de9b4279aca3e" title="Delete a line (or list of lines) of a table (database) mapped to a C++ object of type T (registered i...">qx::dao::delete_by_id</a>((* t), this-&gt;database());
<a name="l00255"></a>00255       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00256"></a>00256       <span class="keywordflow">return</span> err;
<a name="l00257"></a>00257    }
<a name="l00258"></a>00258 
<a name="l00259"></a>00259    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00260"></a><a class="code" href="classqx_1_1_qx_session.html#af7d83381bfa604e0a1d4af1b55c6fa05">00260</a>    QSqlError deleteById(T &amp; t)
<a name="l00261"></a>00261    {
<a name="l00262"></a>00262       QSqlError err = <a class="code" href="group___qx_dao.html#ga298e15a5e745ae43d99de9b4279aca3e" title="Delete a line (or list of lines) of a table (database) mapped to a C++ object of type T (registered i...">qx::dao::delete_by_id</a>(t, this-&gt;database());
<a name="l00263"></a>00263       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00264"></a>00264       <span class="keywordflow">return</span> err;
<a name="l00265"></a>00265    }
<a name="l00266"></a>00266 
<a name="l00267"></a>00267    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00268"></a><a class="code" href="classqx_1_1_qx_session.html#a366d8214853e5b6f4f42d8457c99ff47">00268</a>    QSqlError deleteAll()
<a name="l00269"></a>00269    {
<a name="l00270"></a>00270       QSqlError err = qx::dao::delete_all&lt;T&gt;(this-&gt;database());
<a name="l00271"></a>00271       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00272"></a>00272       <span class="keywordflow">return</span> err;
<a name="l00273"></a>00273    }
<a name="l00274"></a>00274 
<a name="l00275"></a>00275    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00276"></a><a class="code" href="classqx_1_1_qx_session.html#ab8d16d52cce583bb5077ab15f00a27f0">00276</a>    QSqlError deleteByQuery(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query)
<a name="l00277"></a>00277    {
<a name="l00278"></a>00278       QSqlError err = qx::dao::delete_by_query&lt;T&gt;(query, this-&gt;database());
<a name="l00279"></a>00279       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00280"></a>00280       <span class="keywordflow">return</span> err;
<a name="l00281"></a>00281    }
<a name="l00282"></a>00282 
<a name="l00283"></a>00283    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00284"></a><a class="code" href="classqx_1_1_qx_session.html#ac65fd27b08e9dc9236166e9e9f3df11b">00284</a>    QSqlError destroyById(<span class="keyword">const</span> QVariant &amp; <span class="keywordtype">id</span>)
<a name="l00285"></a>00285    {
<a name="l00286"></a>00286       <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a> * pDataMemberX = <a class="code" href="classqx_1_1_qx_class.html" title="qx::QxClass&lt;T&gt; : concrete class of type T registered into QxOrm context (this class is a singleton an...">QxClass&lt;T&gt;::getSingleton</a>()-&gt;<a class="code" href="classqx_1_1_ix_class.html#a668a6091e56a8133606e64cba430baa4">getDataMemberX</a>();
<a name="l00287"></a>00287       <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pDataMemberId = (pDataMemberX ? pDataMemberX-&gt;<a class="code" href="classqx_1_1_ix_data_member_x.html#ada28538e61c5fd9bf352abdb325be6b0">getId_WithDaoStrategy</a>() : NULL);
<a name="l00288"></a>00288       <span class="keywordflow">if</span> (! pDataMemberId) { <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(<span class="keyword">false</span>); <span class="keywordflow">return</span> QSqlError(); }
<a name="l00289"></a>00289       qx_shared_ptr&lt;T&gt; t; t.reset(<span class="keyword">new</span> T());
<a name="l00290"></a>00290       pDataMemberId-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>(t.get(), id, -1, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a5fe28c5356333a6d2633c93cbd6e48e5">qx::cvt::context::e_database</a>);
<a name="l00291"></a>00291       QSqlError err = <a class="code" href="group___qx_dao.html#ga776e2edd2da36029cddc13e9e6e366f5" title="Destroy a line (or list of lines) of a table (database) mapped to a C++ object of type T (registered ...">qx::dao::destroy_by_id</a>((* t), this-&gt;database());
<a name="l00292"></a>00292       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00293"></a>00293       <span class="keywordflow">return</span> err;
<a name="l00294"></a>00294    }
<a name="l00295"></a>00295 
<a name="l00296"></a>00296    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00297"></a><a class="code" href="classqx_1_1_qx_session.html#a98133dc3bace785cd9cd5e4c0353224a">00297</a>    QSqlError destroyById(T &amp; t)
<a name="l00298"></a>00298    {
<a name="l00299"></a>00299       QSqlError err = <a class="code" href="group___qx_dao.html#ga776e2edd2da36029cddc13e9e6e366f5" title="Destroy a line (or list of lines) of a table (database) mapped to a C++ object of type T (registered ...">qx::dao::destroy_by_id</a>(t, this-&gt;database());
<a name="l00300"></a>00300       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00301"></a>00301       <span class="keywordflow">return</span> err;
<a name="l00302"></a>00302    }
<a name="l00303"></a>00303 
<a name="l00304"></a>00304    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00305"></a><a class="code" href="classqx_1_1_qx_session.html#a0549f7745c3127c283df86cb9d8ef1cf">00305</a>    QSqlError destroyAll()
<a name="l00306"></a>00306    {
<a name="l00307"></a>00307       QSqlError err = qx::dao::destroy_all&lt;T&gt;(this-&gt;database());
<a name="l00308"></a>00308       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00309"></a>00309       <span class="keywordflow">return</span> err;
<a name="l00310"></a>00310    }
<a name="l00311"></a>00311 
<a name="l00312"></a>00312    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00313"></a><a class="code" href="classqx_1_1_qx_session.html#ab4f0536ea114d2d0ba12fa49d140f1c6">00313</a>    QSqlError destroyByQuery(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query)
<a name="l00314"></a>00314    {
<a name="l00315"></a>00315       QSqlError err = qx::dao::destroy_by_query&lt;T&gt;(query, this-&gt;database());
<a name="l00316"></a>00316       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00317"></a>00317       <span class="keywordflow">return</span> err;
<a name="l00318"></a>00318    }
<a name="l00319"></a>00319 
<a name="l00320"></a>00320    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00321"></a><a class="code" href="classqx_1_1_qx_session.html#ab3dea23d9da131fffd96f0f07c4404e0">00321</a>    QSqlError executeQuery(<a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t)
<a name="l00322"></a>00322    {
<a name="l00323"></a>00323       QSqlError err = qx::dao::execute_query&lt;T&gt;(query, t, this-&gt;database());
<a name="l00324"></a>00324       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00325"></a>00325       <span class="keywordflow">return</span> err;
<a name="l00326"></a>00326    }
<a name="l00327"></a>00327 
<a name="l00328"></a><a class="code" href="classqx_1_1_qx_session.html#abcfa194ac080018cf8704b787bddee56">00328</a>    QSqlError callQuery(<a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query)
<a name="l00329"></a>00329    {
<a name="l00330"></a>00330       QSqlError err = <a class="code" href="group___qx_dao.html#ga3288b4e3c6a3fa7aeac298262d3102dd" title="qx::dao::call_query function can be used to call a custom SQL query or a stored procedure">qx::dao::call_query</a>(query, this-&gt;database());
<a name="l00331"></a>00331       <span class="keywordflow">if</span> (err.isValid()) { (* this) += err; }
<a name="l00332"></a>00332       <span class="keywordflow">return</span> err;
<a name="l00333"></a>00333    }
<a name="l00334"></a>00334 
<a name="l00335"></a>00335    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00336"></a><a class="code" href="classqx_1_1_qx_session.html#a2c105c9599f218b534b96cb3eb37f72c">00336</a>    <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="group___qx_cache.html#ga1b3b7fe7db7920493f40d0adb9c4957e" title="Return true if the cache contains an object associated with key sKey; otherwise return false...">exist</a>(T &amp; t)
<a name="l00337"></a>00337    { <span class="keywordflow">return</span> <a class="code" href="group___qx_cache.html#ga1b3b7fe7db7920493f40d0adb9c4957e" title="Return true if the cache contains an object associated with key sKey; otherwise return false...">qx::dao::exist</a>(t, this-&gt;database()); }
<a name="l00338"></a>00338 
<a name="l00339"></a>00339 };
<a name="l00340"></a>00340 
<a name="l00341"></a>00341 } <span class="comment">// namespace qx</span>
<a name="l00342"></a>00342 
<a name="l00343"></a>00343 <span class="preprocessor">#endif // _QX_DAO_SESSION_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_session_8h.html">QxSession.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:03 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
